package com.onLineCar.amap.service.impl;

import com.onLineCar.amap.config.AMapApi;
import com.onLineCar.amap.domain.AMapAddressData;
import com.onLineCar.amap.domain.AMapRouteData;

import com.onLineCar.amap.service.AMapService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @program: onLineCar-server
 * @description:
 * @author: godGuang
 * @create: 2023-12-13 18:42
 **/
@Service
public class AMapServiceImpl implements AMapService {
    @Autowired
    private AMapApi aMapApi;

    @Override


    public AMapRouteData getRoute(String origin, String destination) {
        return aMapApi.getRoute(origin, destination);
    }

    @Override
    public AMapAddressData getAddressByLocation(String location) {
        return aMapApi.getAddressByLocation(location);
    }

}

